<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./jquery-1.12.4.min.js"></script>
</head>
<body>
    <input type="text" class="input-season">
    <button class="btn-set-sesaon">设置</button>
    <script>
        //绑定事件
        //$('.input-season')
        $('.btn-set-sesaon').click(function(){
            $.ajax(
                {
                    url:'http://10.1.93.126:8082/SetSeason.do',
                    type:'post',
                    data:{"season":$('.input-season').val()},
                    success:function(res){
                        console.log(res);
                    },
                    error:function(err){
                        console.log(err);
                    }

                }
            );


        });
    
    </script>
    
</body>
</html>